import { DataTypes } from "sequelize";
import sequelize from "../db/index.js";

const follows = sequelize.define('follows',{
  id: {
    type: DataTypes.INTEGER,
    primaryKey: true,
    allowNull: false,
    autoIncrement: true,
    unique: true,
  },
  follower: {
    type: DataTypes.INTEGER,
    allowNull: false
  },
  followed: {
    type: DataTypes.INTEGER,
    allowNull: false
  }
},{
  tableName: 'follows',
  timestamps: false
})

export default follows